[#import "/framework/JGP.htm"  as JGP]
<!--
项目   jgp-cloud-parent
作者   LOUFEI [Gavin]
时间   2018/12/4
-->
[@JGP.head "已办任务"/]
[@JGP.body]
     <jgp-grid _id="taskGrid" _url="/workflow/processApiController/queryApprovedProcess/${userId!'null'}"
               _record_tools="[{'icon':'edit','tip':'处理','fn':'dealTask'},
                  {'icon':'edit','tip':'查看流程图','fn':'showProcessPic'}]">
     </jgp-grid>
[/@JGP.body]

[@JGP.foot]
    <script>
        function showProcessPic(data){
            var procId = data.back.record.id;
            var config = {
                url:'/workflow/processController/showProcessPic/'+procId
            };
            JGP.$dialog(config);
        }

        function dealTask(data) {
            JGP.$post('/workflow/processApiController/dealTask/'+data.back.record.taskId,{},function () {

            })
        }
    </script>
[/@JGP.foot]